<div class="data_list">
<?php
$maxRows_rs_sim = 50;
$pageNum_rs_sim = 0;
if (isset($_GET['pageNum_rs_sim'])) {
  $pageNum_rs_sim = $_GET['pageNum_rs_sim'];
}
$startRow_rs_sim = $pageNum_rs_sim * $maxRows_rs_sim;

$totals  = getContentByCat($_GET['itemid'],$startRow_rs_sim,"yes");


$rs_sim = getContentByCat($_GET['itemid'],$startRow_rs_sim,"NO");
$row_rs_sim = mysql_fetch_assoc($rs_sim);

//if (isset($_GET['totalRows_rs_sim'])) {
//  $totalRows_rs_sim = $_GET['totalRows_rs_sim'];
//} else {
//  $all_rs_sim =  getContentByCat($_GET['cid'],$startRow_rs_sim,"NO");
//  $totalRows_rs_sim = mysql_num_rows($all_rs_sim);
//}
//$totalPages_rs_sim = ceil($totalRows_rs_sim/$maxRows_rs_sim)-1;
?>Sub Pages <strong class="bold redtxt"><?php echo $totals; ?></strong> 
    Members of the category <?php echo $row_rs_resources["page_title"]; ?>
<table border="0" cellpadding="4" cellspacing="0" id="datatable" width="100%">
  <tr>
    <th>Page ID</th>
    <th>Title</th>
    <th>Date</th>
    <th>Show</th>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_rs_sim['content_id']; ?></td>
      <td><a href="?page=content&amp;itemid=<?php echo $row_rs_sim['content_id']; ?>"><?php echo $row_rs_sim['page_title']; ?></a></td>
      <td><?php echo substr($row_rs_sim['date_created'],0,10); ?></td>
      <td><?php echo $row_rs_sim['is_published']; ?></td>
    </tr>
    <?php } while ($row_rs_sim = mysql_fetch_assoc($rs_sim)); ?>
</table>
<?php
mysql_free_result($rs_sim);
?>

</div>